﻿#define _CRT_SECURE_NO_WARNINGS

#include"set.h"
#include"map.h"
#include"set.h"
using namespace my_set;
using namespace my_map;

int main()
{
	/*set<int> s;
	s.insert(1);
	s.insert(2);
	s.insert(3);*/
	/*map<int,int> s;
	s.insert({1,1});
	s.insert({2,2});
	s.insert({3,3});*/
	
	map<string, string> dict;
	dict.insert({ "sort", "排序" });
	dict.insert({ "left", "左边" });
	dict.insert({ "right", "右边" });

	dict["left"] = "左边，剩余";
	dict["insert"] = "插入";
	dict["string"];

	auto it = dict.begin();
	while (it != dict.end())
	{
		// 不能修改first，可以修改second 
		//it->first += 'x';
		it->second += 'x';
		cout << it->first << ":" << it->second << endl;
		++it;
	}
	cout << endl;
	return 0;
}